package org.qs.webservice.domain;

import java.util.Date;
import java.util.List;

import org.qs.webservice.util.StringUtils;
/**
 * 章节
 * @author xusaike
 * @date 2016年7月11日
 */
public class ConChapter {
	//章节id
	private int chap_id;
	//书籍id
	private int book_id;
	//卷id
	private int vol_id;
	//章节名称
	private String chap_name;
	//审核状态
	private int checked;
	//章节序号
	private int chap_rank;
	//章节内容
	private String content;
	//字数
	private int word_size;
	//创建时间
	private Date create_time;
	//修改时间
	private Date modify_time;
	//发布时间
	private Date release_time;
	//状态
	private int status;
	//是否收费
	private int vip_status;
	private int book_vip_status;
	//书籍状态
	private int book_status;
	//作者的话
	private String author_words;
	//卷名
	private String vol_title;
	private int book_price;
	private List<ConChapter> chapters;
	
	private Long author_id;
	private String author_name;
	private String book_word_size;
	private String book_name;
	private int chap_reviews;
	private Long user_id;
	public int getChap_id() {
		return chap_id;
	}
	public void setChap_id(int chap_id) {
		this.chap_id = chap_id;
	}
	public int getBook_id() {
		return book_id;
	}
	public void setBook_id(int book_id) {
		this.book_id = book_id;
	}
	public int getVol_id() {
		return vol_id;
	}
	public void setVol_id(int vol_id) {
		this.vol_id = vol_id;
	}
	public String getChap_name() {
		return chap_name;
	}
	public void setChap_name(String chap_name) {
		this.chap_name = chap_name;
	}
	public int getChecked() {
		return checked;
	}
	public void setChecked(int checked) {
		this.checked = checked;
	}
	public int getChap_rank() {
		return chap_rank;
	}
	public void setChap_rank(int chap_rank) {
		this.chap_rank = chap_rank;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getWord_size() {
		return word_size;
	}
	public void setWord_size(int word_size) {
		this.word_size = word_size;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public Date getModify_time() {
		return modify_time;
	}
	public void setModify_time(Date modify_time) {
		this.modify_time = modify_time;
	}
	public Date getRelease_time() {
		return release_time;
	}
	public void setRelease_time(Date release_time) {
		this.release_time = release_time;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getAuthor_words() {
		return author_words;
	}
	public void setAuthor_words(String author_words) {
		this.author_words = author_words;
	}
	public String getVol_title() {
		if(StringUtils.isNullOrEmpty(vol_title)){
			return "";
		}
		return vol_title;
	}
	public void setVol_title(String vol_title) {
		this.vol_title = vol_title;
	}
	public int getVip_status() {
		return vip_status;
	}
	public void setVip_status(int vip_status) {
		this.vip_status = vip_status;
	}
	public List<ConChapter> getChapters() {
		return chapters;
	}
	public void setChapters(List<ConChapter> chapters) {
		this.chapters = chapters;
	}
	public int getBook_status() {
		return book_status;
	}
	public void setBook_status(int book_status) {
		this.book_status = book_status;
	}
	public String getBook_word_size() {
		return book_word_size;
	}
	public void setBook_word_size(String book_word_size) {
		this.book_word_size = book_word_size;
	}
	public String getAuthor_name() {
		return author_name;
	}
	public void setAuthor_name(String author_name) {
		this.author_name = author_name;
	}
	public Long getAuthor_id() {
		return author_id;
	}
	public void setAuthor_id(Long author_id) {
		this.author_id = author_id;
	}
	public String getBook_name() {
		return book_name;
	}
	public void setBook_name(String book_name) {
		this.book_name = book_name;
	}
	/**
	 * @return the chap_reviews
	 */
	public int getChap_reviews() {
		return chap_reviews;
	}
	/**
	 * @param chap_reviews the chap_reviews to set
	 */
	public void setChap_reviews(int chap_reviews) {
		this.chap_reviews = chap_reviews;
	}
	/**
	 * @return the user_id
	 */
	public Long getUser_id() {
		return user_id;
	}
	/**
	 * @param user_id the user_id to set
	 */
	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}
	/**
	 * @return the book_price
	 */
	public int getBook_price() {
		return book_price;
	}
	/**
	 * @param book_price the book_price to set
	 */
	public void setBook_price(int book_price) {
		this.book_price = book_price;
	}
	/**
	 * @return the book_vip_status
	 */
	public int getBook_vip_status() {
		return book_vip_status;
	}
	/**
	 * @param book_vip_status the book_vip_status to set
	 */
	public void setBook_vip_status(int book_vip_status) {
		this.book_vip_status = book_vip_status;
	}
	
	
	
}
